<%-- 
    Document   : Approve
    Created on : Oct 27, 2012, 5:19:46 PM
    Author     : Swami
--%>

<%@page import="SurveyApproval.Approve"%>
<%@page import="java.util.ArrayList"%>
<%@page import="survey_dlt.dltsurvey"%>
<%@page import="survey_dlt.survey"%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../../mastertemplate/header.jsp"%>

<!DOCTYPE html>

        <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
     <%
        
        Approve s =new Approve();
      dltsurvey ds=new dltsurvey();
        ArrayList array = new ArrayList();  
        Object result = request.getAttribute("approvelist");  
//        out.println("hello");
        //String abc=request.getAttribute("event").toString();
        array = (ArrayList<dltsurvey>) result;  
        //out.println(abc);
        out.println("<h1> Pending List </h1> <table border=1>");
        for(int i=0;i<array.size();i++)
         {
            out.println("<tr>");
        ds= (dltsurvey) array.get(i);
       
        out.println("<Td>"+ds.getSid());  
        out.println("<Td>"+ds.getTtl());
        out.println("<Td><a href='Approve?a="+ds.getSid()+"' ><input type='button' value='Approve' id='"+ds.getSid()+"'/></a></Td>");
        //out.println("<a href='../qrydlt'><td><input type='button' value='Delete' name='"+ds.getSid()+"' id='"+ds.getSid()+"'></td></a>");
                  
        out.println("<tr>");
         }
        out.println("<table>");
       
        %>
    </body>
    <%@include file="../../mastertemplate/footer.jsp"%>

        </html>
